<%@page import="com.kerbores.utils.common.StringUtils"%>
<%@page import="com.kerbores.utils.file.FileUtils"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="com.kerbores.nutz.bean.User.SEX"%>
<%@page import="org.nutz.lang.random.R"%>
<%@page import="com.kerbores.nutz.bean.User"%>
<%@page import="org.nutz.lang.util.NutMap"%>
<%@page import="com.kerbores.utils.entries.Result"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="it" uri="http://ixion.net/tag/it"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="http://cdn.bootcss.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<title><c:choose>
		<c:when test="${empty obj.title }">
		首页
	</c:when>
		<c:otherwise>
		${obj.title }
	</c:otherwise>
	</c:choose></title>
</head>
<body>
	sdfgh

	<%
	pageContext.setAttribute("base", Result.success());
	NutMap map = new NutMap();
	map.put("name", "中文名称");
	map.put("age", "14");
	map.put("id", "4");
	pageContext.setAttribute("pages", 3);
	List list = new ArrayList();
	for (int i = 0; i < 10; i++) {
		list.add(new User(i + 1, R.sg(5).next(), R.random(20, 30), R.random(0, 1) == 1 ? SEX.MALE : SEX.FEMALE));
	}
	pageContext.setAttribute("users", list);
%>
	<%
		Object object = request.getAttribute("objs");
		Object[] objs = object == null ? new Object[] {} : (Object[]) object;
		for (Object obj : objs) {
			out.write(obj.toString());
		}
	%>
	<it:printer value="base" />
	<it:pager pages="${pages }" nameSpace="a/" page="1" method="aa.do" size="sm" />
	<br>
	<it:iterator name="user" value="${users }">
		${user.name } ${user.age } ${user.sex } <br>
	</it:iterator>

</body>
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</html>